package com.allwees.bs.core.modelbase.constant;


public interface ErrorMessage {
	String SUCCESS = "success";

	String EMPTY = "";

	String NULL = "NULL";

	String NAN = "not a number";

	/**
	 * 编码错误
	 */
	String ENCODE_ERROR = "Encode error";

	/**
	 * 格式错误
	 */
	String FORMAT_ERROR = "Format error";

	/**
	 * 转换错误
	 */
	String CONVERT_ERROR = "Convert error";

	/**
	 * 访问太频繁 请稍后再试
	 */
	String EXCEED_ACCESS_LIMIT = "Request too frequently";

	String CONSISTENCY_ERROR = "业务数据不一致";

	String UNAUTHORIZED = "Unauthorized";

	String INVALID_TOKEN = "Invalid token or token has been expired";

	String BAD_CREDANCIALS = "Email or password is incorrect";

	String DATA_NO_PRIVILEGE = "User has no privilege for data";

	String AT_LEAST_ONE_DEFAULT = "Sorry, at least one default";

	/**
	 * 减少使用SERVER_ERROR 太笼统 理解困难 即使日志中打印也不知道是什么问题
	 */
	String SERVER_ERROR = "Server error";

	String ALREADY_EXISTS = "Record already exists";

	String PARAM_ERROR = "Parameter error";

	String NOT_FOUND = "Data not found or null";

	String PARAM_NOT_NULL = "Parameter must not be null";

	String PARAM_LENGTH_ERROR = "Parameter length error";

	String PARAM_RANGE_ERROR = "Parameter range error";

	String PARAM_TYPE_NOT_MATCH = "Parameter type not match";

	String SYS_PARAM_LENGTH_ERROR = "sys Parameter length null";

	String USER_EMAIL_IS_EMPTY = "The email is empty,Please set email first";

	String USER_EMAIL_WITH_SAME_ONE = "Please change to a different email from the one you are using now";

	String USER_EMAIL_IS_ALREADY_EXISTS = "The email is already exists,Please change one";

	String USERS_NO_PASSWORD_SET = "The password is empty,Please verify first！";

	String USERS_ORIGIN_PASSWORD_NOT_VALID = "The original password is incorrect";

	String VERIFY_CODE_EXPIRED = "your verify code expired";

	String VERIFY_CODE_NOT_VALID = "The verify code is incorrect";

	// ***************************** 订单部分 *****************************
	String ORDER_NOT_SUCCESS = "Order isn't successful";

	String ORDER_NOT_REVIEWABLE = "Order is no longer reviewable";

	String ORDER_REPEAT_REVIEW = "Order is already reviewed";

	// 商品卖光了 库存不足
	String ORDER_SKU_QUANTITY_NOT_ENOUGH = "Products sold out";

	String ORDER_PRODUCT_OFF_SHELVES = "Products off shelves";

	String ORDER_CANNOT_CANCEL_PAID = "Can not cancel order after payment";

	String ORDER_CANNOT_REQUEST_REFUND = "Can not request refund, wrong state";

	String ORDER_CANNOT_CONFIRM_SHIPPING = "Can not confirm order shipping, wrong state";

	String ORDER_ITEM_MUST_INCLUDE_SKU = "Please select color or size";

	String ORDER_CANNOT_APPROVE_REFUND = "Can not approve refund, wrong state";

	String ORDER_CANNOT_CANCEL_REFUND = "Can not cancel refund, wrong state";

	String ORDER_TRACK_SHIPPING_ERROR = "Sorry, we can't track shipping info";

	String ORDER_EXCEED_REFUND_LIMIT = "You can only refund once";

	String ORDER_SHIPPING_WRONG_LOGISTIC = "wrong logistic information";

	String ODDER_PRODUCT_SUM_LIMIT = "Sorry, you can only buy one this item";

	String ORDER_CANNOT_SHIP = "Can not ship order, wrong state";

	String ORDER_CANNOT_PRINT = "Can not priint order, wrong state";

	String ORDER_CANNOT_DELIVER = "Can not delever order, wrong state";

	String ORDER_MORE_THAN_ONE_FREEGIFT = "Sorry! You can only choose one New User gift at a time";

	// ***************************** 支付部分 *****************************
	String PAYMENT_ORDER_STATE_IS_NOT_UNPAID = "Order state isn't to be paid";

	String PAYMENT_REFUND_ORDER_ID_NOT_MATCH = "Order id don't match";

	String PAYMENT_REFUND_PAYMENT_NOT_APPROVED = "Payment refund isn't approved";

	String PAYMENT_TRANSFER_ERROR = "Payment transfer error";

	String PAYMENT_PAYPAL_CREATE_ERROR = "Payment create error";

	String PAYMENT_PAYBY_QUERY_ERROR = "Payment create query error";

	String PAYMENT_PAYBY_TRANSFER_QUERY_ERROR = "Payment transfer query error";

	String PAYMENT_PAYPAL_CREDITCARD_ERROR = "Payment credit card error";

	// ***************************** 商品部分 *****************************
	// 商品下架了
	String PRODUCT_CATEGORY_NOT_FOUND = "Product category not found";

	// ***************************** 活动部分 *****************************
	String CANNOT_PINTUAN_WITH_YOURSELF = "Can not group with yourself";

	String BOOSTER_DUPLICATE_GROUP = "The invitation is prepared. Please share with your friends as soon as possible, you could win it for free.";

	String BOOSTER_USER_REPEAT = "Repeat user";

	String BOOSTER_DEVICE_REPEAT = "Repeat device";

	String BOOSTER_GROUP_EXPIRED = "Group already expired";

	String BOOSTER_GROUP_ALREADY_SUCCEED = "Group already finished";

	String BOOSTER_GROUP_ALREADY_FAILED = "Group already failed";

	String BOOSTER_ACTIVITY_EXPIRED = "Activity already expired";

	// ***************************** 商家部分 *****************************
	String MERCHANT_ACCOUNT_SUPPLY_WRONG_STATE = "商家充值扣款失败，不是待审核状态";

	String MERCHANT_ACCOUNT_REQUEST_WITHDRAW_MONEY_NOT_ENOUGH = "账户余额不足";

	String MERCHANT_ACCOUNT_REQUEST_WITHDRAW_DONT_HAVE_DEFAULT_WITHDRAW_ACCOUNT = "没有默认的提现账户";

	// ***************************** 外部依赖 *****************************
	String THIRD_PARTY_ERROR = "Request third-party resource failed, url is ";

	String THIRD_PARTY_STATUS_ERROR = "Request third-party resource failed, status is ";

	String UPLOAD_OSS_FAILED = "upload oss image network failed, url is ";

	String CREATE_EXPRESS_FAILED = "create express failed for order: ";

	String CARRIER_NOT_FOUND = "Carrier not found: ";

	String TRACKING_NOT_FOUND = "Tracking not found: ";

	String SYNC_ORDER_TO_MABANG_FAILED = "sync order to mabang order: ";


	//****************************** 订阅部分  ***************************************
	String EMAIL_ALREADY_EXISTS = "Email already exists,please login directly";

	String SUBSCRIBE_HAVE_ERROR = "Subscription in progress, slightly in subscription";
	String SUBSCRIBE_EXISTENT_ERROR = "There is no subscription. Please unsubscribe after subscribing.";
	String SUBSCRIBE_USERNOT_ERROR = "user does not exist";
	String HAVEYOUUNSUBSCRIBED="cannot operate unsubscribe";

    String COUPON_NOT_FOUND = "coupon not found";
	String COUPON_EXPIRED = "coupon expired";
	String USER_CASH_INSUFFICIENT = "you cash insufficient";
	String USER_COUPON_USED = "you coupon used";

	// ***************************** 库存部分 *****************************
	String NO_STOCK_ERROR = "Opps! Some items is no longer available,the total price changes";
	String PRODUCT_LIMIT_CHECKOUT = "Goods \"nn\" each one can only buy xx pcs";
	String PRODUCT_LIMIT_CART = "each one can only buy xx pcs";
}


